﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MaterialsDtls.ascx.cs"
    Inherits="Workflow.Alerts.Sublayouts.ProfileSettings.NewMaterial" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxtoolkit" %>

<h2 class="settingsTitle">Materiaal details</h2>
<div class="formcontainer">
    <div id="name" runat="server" class="boxRow">
        <asp:Label ID="lblName" AssociatedControlID="txtName" runat="server" Text="Materiaalsoort"
            CssClass="settingsLabel" />
        <ajaxtoolkit:TextBoxWatermarkExtender ID="watermark1" runat="server" TargetControlID="txtName"
            WatermarkText="Verplicht veld" WatermarkCssClass="styledInput styledInput635 required">
        </ajaxtoolkit:TextBoxWatermarkExtender>
        <asp:TextBox ID="txtName" runat="server" CssClass="styledInput styledInput635" />
        <asp:RequiredFieldValidator ID="rfvName" runat="server" ErrorMessage="Verplicht veld" Display="Dynamic" CssClass="valMessage"
            ControlToValidate="txtName" />        
         <div class="clear"></div>
    </div>
    <div id="price" runat="server" class="boxRow">
        <asp:Label ID="lblPrice" AssociatedControlID="txtPrice" runat="server" Text="Prijs (&euro;)"
            CssClass="settingsLabel" />        
        <telerik:radnumerictextbox id="txtPrice" enableembeddedbasestylesheet="false" enableembeddedskins="false"
            skin="workflow" runat="server" CssClass="styledInput styledInput635" showspinbuttons="false"
            minvalue="0" numberformat-decimaldigits="2" Width="617px" />
        <asp:RequiredFieldValidator ID="rfvPrice" runat="server" ErrorMessage="Verplicht veld" Display="Dynamic" CssClass="valMessage"
            ControlToValidate="txtPrice" />
         <div class="clear"></div>
    </div>
    <div id="constructorprice" runat="server" class="boxRow">
        <asp:Label ID="lblConstructorPrice" AssociatedControlID="txtConstructorPrice" runat="server" Text="Tarief aanneemer gemeente (&euro;)"
            CssClass="settingsLabel" />        
        <telerik:radnumerictextbox id="txtConstructorPrice" enableembeddedbasestylesheet="false" enableembeddedskins="false"
            skin="workflow" runat="server" CssClass="styledInput styledInput635" showspinbuttons="false"
            minvalue="0" numberformat-decimaldigits="2" Width="617px" />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Verplicht veld" Display="Dynamic" CssClass="valMessage"
            ControlToValidate="txtConstructorPrice" />
         <div class="clear"></div>
    </div>
    <div id="unit" runat="server" class="boxRow">
        <asp:Label ID="lblUnit" AssociatedControlID="ddlUnit" runat="server" Text="Eenheid"
            CssClass="settingsLabel" />
        <asp:DropDownList ID="ddlUnit" runat="server" CssClass="hiddenDropdown js_hiddenDropdown styledDropdown160">
        </asp:DropDownList>
        <div class="clear"></div>
    </div>
    <div id="disabled" runat="server">
        <asp:CheckBox ID="chkDisable" runat="server" Text="Uitschakelen" CssClass="radioButton radioButtonSettings" />
    </div>
</div>
<div class="footerButtonContainer">
    <asp:Button ID="btnSave" runat="server" Text="Opslaan en sluiten" OnClick="btnSave_Click"
        CssClass="styledButton styledButton150 floatLeft" />
    <asp:Button ID="btnSaveNew" runat="server" Text="Opslaan en nieuw materiaal" OnClick="btnSaveNew_Click"
        CssClass="styledButton styledButton200 floatLeft" />
    <asp:Button ID="btnCancel" runat="server" Text="Annuleren" OnClick="btnCancel_Click"
        CssClass="styledButton styledButton75 floatLeft" CausesValidation="False" />
</div>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" />

<script type="text/javascript">
    jQuery(document).ready(function() {
        workflow.form.radioButtonCtrl.SetupLabel();
        workflow.form.select.Init("select.js_hiddenDropdown:not(.init)");
    }); 
</script>

